package models

import (
	"time"
)

type User struct {
	ID              uint      `gorm:"primaryKey" json:"id"`
	UserID          string    `gorm:"column:user_id;type:varchar(64);unique" json:"user_id"`
	TaiUserName     string    `gorm:"column:tai_user_name;type:varchar(64)" json:"tai_user_name"`
	UserName        string    `gorm:"column:user_name;type:varchar(128)" json:"user_name"`
	UserChineseName string    `gorm:"column:user_chinese_name;type:varchar(64)" json:"user_chinese_name"`
	NeedCard        int8      `gorm:"column:need_card;type:tinyint(4)" json:"need_card"`
	AuthStartDate   string    `gorm:"column:auth_start_date;type:varchar(64)" json:"auth_start_date"`
	AuthEndDate     string    `gorm:"column:auth_end_date;type:varchar(64)" json:"auth_end_date"`
	Status          int8      `gorm:"column:status;type:tinyint(4)" json:"status"`
	OrgType         int8      `gorm:"column:org_type;type:tinyint(4)" json:"org_type"`
	UpdateTime      time.Time `gorm:"column:update_time;type:datetime" json:"update_time"`
	Phone           string    `gorm:"column:phone;type:varchar(64)" json:"phone"`
	ConcatPeople    string    `gorm:"column:concat_people;type:varchar(128)" json:"concat_people"`
	IDNumber        string    `gorm:"column:id_number;type:varchar(64)" json:"id_number"`
	CreateBy        string    `gorm:"column:create_by;type:varchar(128)" json:"create_by"`
}

func (User) TableName() string {
	return "user"
}
